package com.dlc.shop.coupon.common.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * 优惠券商品信息
 * @author lanhai
 */
@Data
@TableName("tz_coupon_prod")
public class CouponProd implements Serializable {

    @TableId
    @Schema(description = "优惠券商品ID" )
    private Long couponProdId;

    @Schema(description = "优惠券ID" )
    private Long couponId;

    @Schema(description = "商品ID" )
    private Long prodId;

    @Schema(description = "商品名称" )
    @TableField(exist=false)
    private String prodName;

    @Schema(description = "商品主图" )
    @TableField(exist=false)
    private String pic;
}
